package com.quan.system.feign;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSON;
import com.quan.common.base.bean.ResultBean;
import com.quan.system.entity.SystemUser;

public class OaPersonServiceFeignFallback implements OaPersonServiceFeign {
	
	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Override
	public Object add(SystemUser entity) {
		logger.error("Feign调用{}异常{}", "/oa/hr/person/add", JSON.toJSONString(entity));
		return ResultBean.failure("服务不可用，Feign调用[/oa/hr/person/add]异常");
	}

}
